var images = document.getElementsByClassName("dataimg");
var timer = window.setInterval(function(){updateimg()},300000);

window.onload = function() {
	updateimg();
}

function updateimg() {

	var d = new Date();
	images[0].src = "../images/1h.png?" + d.getTime();
	images[1].src = "../images/24h.png?" + d.getTime();
	
	return 0;
}